From 50e3f532b93f7d7eb755804a80c69eac79ca078e Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 9 Mar 2012 13:18:52 +0100 Subject: [PATCH] a11y: Only care about GtkOrientable::orientation There are other widgets (like PanelToplevel) that aren't a GtkOrientable but still have that property. --- gtk/a11y/gtkwidgetaccessible.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/a11y/gtkwidgetaccessible.c b/gtk/a11y/gtkwidgetaccessible.c index ff31743464..c386eb3ef9 100644 --- a/gtk/a11y/gtkwidgetaccessible.c +++ b/gtk/a11y/gtkwidgetaccessible.c @@ -465,7 +465,8 @@ gtk_widget_accessible_notify_gtk (GObject *obj, state = ATK_STATE_SENSITIVE; value = gtk_widget_get_sensitive (widget); } - else if (g_strcmp0 (pspec->name, "orientation") == 0) + else if (g_strcmp0 (pspec->name, "orientation") == 0 && + GTK_IS_ORIENTABLE (widget)) { GtkOrientable *orientable; -- 2.30.2